package com.fishery.base.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 *
 * </p>
 *
 * @author Ghost
 * @since 2021-01-15
 */
@TableName("t_germchit")
@ApiModel(value = "Germchit对象", description = "")
public class Germchit implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "种苗编号")
	@TableId(value = "id", type = IdType.ID_WORKER_STR)
	private String id;

	@ApiModelProperty(value = "种苗批次名称")
	private String germchitBatchName;

	@ApiModelProperty(value = "种苗品种")
	private String germchitSpecies;

	@ApiModelProperty(value = "种苗产地")
	private String germchitOrigin;

	@ApiModelProperty(value = "供应商名称")
	private String germchitSupplierName;

	@ApiModelProperty(value = "供应商电话")
	private String germchitSupplierPhone;

	@ApiModelProperty(value = "质检图片")
	private String germchitQualityInspection;

	@ApiModelProperty(value = "库存量（万条）")
	private int germchitAmount;

	@ApiModelProperty(value = "版本号（乐观锁）")
	@Version
	@TableField(fill = FieldFill.INSERT)
	private Integer version;

	@ApiModelProperty(value = "逻辑删除（0未删除，1删除）")
	@TableLogic
	@TableField(fill = FieldFill.INSERT)
	private Integer isDeleted;

	@ApiModelProperty(value = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private Date gmtCreate;

	@ApiModelProperty(value = "修改时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date gmtModified;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getGermchitBatchName() {
		return germchitBatchName;
	}

	public void setGermchitBatchName(String germchitBatchName) {
		this.germchitBatchName = germchitBatchName;
	}

	public String getGermchitSpecies() {
		return germchitSpecies;
	}

	public void setGermchitSpecies(String germchitSpecies) {
		this.germchitSpecies = germchitSpecies;
	}

	public String getGermchitOrigin() {
		return germchitOrigin;
	}

	public void setGermchitOrigin(String germchitOrigin) {
		this.germchitOrigin = germchitOrigin;
	}

	public String getGermchitSupplierName() {
		return germchitSupplierName;
	}

	public void setGermchitSupplierName(String germchitSupplierName) {
		this.germchitSupplierName = germchitSupplierName;
	}

	public String getGermchitSupplierPhone() {
		return germchitSupplierPhone;
	}

	public void setGermchitSupplierPhone(String germchitSupplierPhone) {
		this.germchitSupplierPhone = germchitSupplierPhone;
	}

	public String getGermchitQualityInspection() {
		return germchitQualityInspection;
	}

	public void setGermchitQualityInspection(String germchitQualityInspection) {
		this.germchitQualityInspection = germchitQualityInspection;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public Integer getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Integer isDeleted) {
		this.isDeleted = isDeleted;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

	public int getGermchitAmount() {
		return germchitAmount;
	}

	public void setGermchitAmount(int germchitAmount) {
		this.germchitAmount = germchitAmount;
	}

	@Override
	public String toString() {
		return "Germchit{" +
				"id='" + id + '\'' +
				", germchitBatchName='" + germchitBatchName + '\'' +
				", germchitSpecies='" + germchitSpecies + '\'' +
				", germchitOrigin='" + germchitOrigin + '\'' +
				", germchitSupplierName='" + germchitSupplierName + '\'' +
				", germchitSupplierPhone='" + germchitSupplierPhone + '\'' +
				", germchitQualityInspection='" + germchitQualityInspection + '\'' +
				", germtchit_amount=" + germchitAmount +
				", version=" + version +
				", isDeleted=" + isDeleted +
				", gmtCreate=" + gmtCreate +
				", gmtModified=" + gmtModified +
				'}';
	}
}
